package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingNighttimeItem;
import com.api.shopapi.mapper.NursingSchedulingNighttimeItemMapper;
import com.api.shopapi.service.NursingSchedulingNighttimeItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("NursingSchedulingNighttimeItemServiceImplOne")
public class NursingSchedulingNighttimeItemServiceImpl implements NursingSchedulingNighttimeItemService {
    @Autowired
    private NursingSchedulingNighttimeItemMapper nursingSchedulingNighttimeItemMapper;


    @Override
    public int insert(NursingSchedulingNighttimeItem nurseSchedulingNighttimeItem) {
        return nursingSchedulingNighttimeItemMapper.insert(nurseSchedulingNighttimeItem);
    }

    @Override
    public int updateByNurseSchedulingNighttimeItemCode(NursingSchedulingNighttimeItem nurseSchedulingNighttimeItem) {
        return nursingSchedulingNighttimeItemMapper.updateByNursingSchedulingNighttimeItemCode(nurseSchedulingNighttimeItem);
    }

    @Override
    public int deleteByNurseSchedulingNighttimeItemCode(String nurseSchedulingNighttimeItemCode) {
        return nursingSchedulingNighttimeItemMapper.deleteByNursingSchedulingNighttimeItemCode(nurseSchedulingNighttimeItemCode);
    }

    @Override
    public NursingSchedulingNighttimeItem getByNursingSchedulingNightTimeItemCode(String nurseSchedulingNighttimeItemCode) {
        return nursingSchedulingNighttimeItemMapper.getByNursingSchedulingNightTimeItemCode(nurseSchedulingNighttimeItemCode);
    }

    @Override
    public List<NursingSchedulingNighttimeItem> getByNursingSchedulingNightTimeCode(String nursingSchedulingNighttimeCode) {
        return nursingSchedulingNighttimeItemMapper.getListByNursingSchedulingNightTimeCode(nursingSchedulingNighttimeCode);
    }

    @Override
    public int deleteByNurseSchedulingNighttimeCode(String nursingSchedulingNighttimeCode) {
        return nursingSchedulingNighttimeItemMapper.deleteByNurseSchedulingNighttimeCode(nursingSchedulingNighttimeCode);
    }

    @Override
    public NursingSchedulingNighttimeItem getByNursingSchedulingNightTimeCodeAndNurseAideCode(String nursingSchedulingNighttimeCode, String nurseAideCode) {
        return nursingSchedulingNighttimeItemMapper.getByNursingSchedulingNightTimeCodeAndNurseAideCode(nursingSchedulingNighttimeCode,nurseAideCode);
    }

    @Override
    public NursingSchedulingNighttimeItem getByNursingSchedulingNightTimeCodeAndNurseCode(String nursingSchedulingNighttimeCode, String nurseCode) {
        return nursingSchedulingNighttimeItemMapper.getByNursingSchedulingNightTimeCodeAndNurseCode(nursingSchedulingNighttimeCode,nurseCode);
    }
}
